home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / jockey-common.postinst < prev    next >
Text File  |  2008-10-24  |  1KB  |  33 lines

  1. #!/bin/sh -e
  2.  
  3. if [ "$1" = configure ] || [ "$1" = reconfigure ]; then
  4.     getent group admin > /dev/null 2>&1 || addgroup --system --quiet admin
  5.     chown root:admin /var/cache/jockey
  6.     chmod 3775 /var/cache/jockey
  7.  
  8.     if dpkg --compare-versions "$2" lt-nl "0.3"; then
  9.         # format changed between 0.2 and 0.3
  10.         rm -f /var/cache/jockey/check
  11.     fi
  12.  
  13.     # clean up after restricted-manager->jockey package transition
  14.     if dpkg --compare-versions "$2" lt "0.3.3-0ubuntu3"; then
  15.         rm -f /etc/xdg/autostart/restricted-manager.desktop
  16.     fi
  17. fi
  18.  
  19. # Automatically added by dh_pycentral
  20. if which pycentral >/dev/null 2>&1; then
  21.     pycentral pkginstall jockey-common
  22.     if grep -qs '^jockey-common$' /var/lib/pycentral/delayed-pkgs; then
  23.         sed -i '/^jockey-common$/d' /var/lib/pycentral/delayed-pkgs
  24.     fi
  25. fi
  26. # End automatically added section
  27. # Automatically added by dh_icons
  28. if which update-icon-caches >/dev/null 2>&1 ; then
  29.     update-icon-caches /usr/share/icons/hicolor
  30. fi
  31. # End automatically added section
  32.  
  33.